#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtWidgets/QMainWindow>
#include <QtGui/QIcon>
#include <QtWidgets/QTabWidget>
#include <QtCore/QThread>
#include "localserver.h"
#include "trayicon.h"
#include "simulatortab.h"
#include "eventtab.h"
#include "chattab.h"
#include "optiontab.h"
#include "statusbar.h"

class MainWindow : public QMainWindow
{
  Q_OBJECT
public:
  explicit MainWindow(QWidget *parent = 0);
  ~MainWindow();
  
signals:
  
public slots:
  void showUp();
  void showSimulator();
  void showEventList();
  void showChat();
  void showOptions();
  
protected:
  LocalServer* srv;
  QThread* srvThread;
  TrayIcon* tray;
  QIcon* icon;

  StatusBar* statusBar;

  QTabWidget* tabs;
  SimulatorTab* simulTab;
  EventTab* evtTab;
  ChatTab* chatTab;
  OptionTab* optTab;
};

#endif // MAINWINDOW_H
